export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  dialogWidth: '70%',
  delBtn: false,
  addBtn: false,
  editBtn: false,
  viewBtn: true,
  selection: true,
  labelWidth: 120,
  searchMenuSpan: 6,
  column: [{
    label: '标识',
    prop: 'id',
    hide: true,
    display: false
  }, {
    label: '年份',
    prop: 'workTime',
    type: 'year',
    format: 'yyyy',
    valueFormat: 'yyyy',
    search: true,
    hide: true,
    display: false
  }, {
    label: '月份',
    prop: 'planMonth',
    search: true,
    display: false
  }, {
    label: '周期(周)',
    prop: 'workCycle',
    type: 'select',
    dicUrl: '/admin/dict/type/plan_week_cycle',
    display: false,
    rules: [{
      required: true,
      message: '请选择周期',
      trigger: 'blur'
    }]
  }, {
    label: '票种',
    prop: 'ticketType',
    type: 'select',
    dicUrl: '/support/swpmticketcardtype/dict',
    props: {
      label: 'mainName',
      value: 'mainEnName'
    },
    search: true,
    display: false,
    rules: [{
      required: true,
      message: '请选择票种',
      trigger: 'blur'
    }]
  }, {
    label: '票价',
    prop: 'ticketPrice',
    type: 'number',
    precision: 2,
    display: false
  }, {
    label: '车票次数',
    prop: 'ticketTimes',
    type: 'number',
    precision: 0,
    display: false
  }, {
    label: '车票有效期',
    prop: 'activeTime',
    type: 'number',
    precision: 0,
    display: false
  }, {
    label: '最晚使用时间',
    prop: 'latestStartTime',
    type: 'datetime',
    valueFormat: 'yyyy-MM-dd HH:mm:ss',
    format: 'yyyy-MM-dd',
    display: false
  }, {
    label: '张数',
    prop: 'ticketNumber',
    type: 'number',
    precision: 0,
    display: false
  }, {
    label: '起号/止号',
    prop: 'startEndNo',
    display: false,
    rules: [{
      required: true,
      message: '请输入起号/止号',
      trigger: 'blur'
    }]
  }, {
    label: '车票用途',
    prop: 'ticketPurpose',
    display: false,
    rules: [{
      required: true,
      message: '请输入车票用途',
      trigger: 'blur'
    }]
  }, {
    label: '计划完成时间',
    prop: 'planFinishTime',
    type: 'date',
    valueFormat: 'yyyy-MM-dd HH:mm:ss',
    format: 'yyyy-MM-dd',
    display: false
  }, {
    label: '实际完成时间',
    prop: 'actualFinishTime',
    type: 'date',
    valueFormat: 'yyyy-MM-dd HH:mm:ss',
    format: 'yyyy-MM-dd',
    search: true,
    searchLabelWidth: 100,
    display: false
  }, {
    label: '清洗后数量',
    prop: 'cleanedNumber',
    type: 'number',
    precision: 0,
    rules: [{
      required: true,
      message: '请输入清洗后数量',
      trigger: 'blur'
    }],
    display: false
  }, {
    label: '折损数量',
    prop: 'lossNumber',
    type: 'number',
    precision: 0,
    display: false,
    rules: [{
      required: true,
      message: '请输入折损数量',
      trigger: 'blur'
    }]
  }, {
    label: '未清洗数量',
    prop: 'uncleanNumber',
    type: 'number',
    precision: 0,
    display: false,
    rules: [{
      required: true,
      message: '请输入未清洗数量',
      trigger: 'blur'
    }]
  }, {
    label: '是否完成清洗',
    prop: 'isFinish',
    type: 'select',
    search: true,
    searchLabelWidth: 100,
    dicData: [{
      label: '是',
      value: '1'
    }, {
      label: '否',
      value: '0'
    }],
    display: false
  }, {
    label: '未完成情况说明',
    prop: 'unfinishReason',
    display: false
  }, {
    label: '审批状态',
    prop: 'checkStatus',
    type: 'select',
    dicUrl: '/admin/dict/type/check_status',
    display: false
  }, {
    label: '审核人',
    prop: 'checkPersonId',
    hide: true,
    display: false
  }, {
    label: '审核时间',
    prop: 'checkTime',
    hide: true,
    display: false
  }, {
    label: '备注',
    prop: 'remark',
    type: 'textarea',
    maxRows: 6,
    minRows: 4,
    display: false
  }, {
    label: '创建人ID',
    prop: 'creatorId',
    hide: true,
    display: false
  }, {
    label: '创建人名称',
    prop: 'creatorName',
    hide: true,
    display: false
  }, {
    label: '创建时间',
    prop: 'createtime',
    hide: true,
    display: false
  }],
  group: [{
    label: '车票清洗计划信息',
    column: [{
      label: '月份',
      prop: 'planMonth',
      disabled: true
    }, {
      label: '周期(周)',
      prop: 'workCycle',
      type: 'select',
      dicUrl: '/admin/dict/type/plan_week_cycle',
      disabled: true,
      rules: [{
        required: true,
        message: '请选择周期',
        trigger: 'blur'
      }]
    }, {
      label: '票种',
      prop: 'ticketType',
      type: 'select',
      dicUrl: '/support/swpmticketcardtype/dict',
      props: {
        label: 'mainName',
        value: 'mainEnName'
      },
      disabled: true,
      rules: [{
        required: true,
        message: '请选择票种',
        trigger: 'blur'
      }]
    }, {
      label: '票价',
      prop: 'ticketPrice',
      type: 'number',
      precision: 2,
      disabled: true
    }, {
      label: '车票次数',
      prop: 'ticketTimes',
      type: 'number',
      precision: 0,
      disabled: true
    }, {
      label: '车票有效期',
      prop: 'activeTime',
      type: 'number',
      precision: 0,
      disabled: true
    }, {
      label: '最晚使用时间',
      prop: 'latestStartTime',
      type: 'date',
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd HH:mm:ss',
      disabled: true
    }, {
      label: '张数',
      prop: 'ticketNumber',
      type: 'number',
      precision: 0,
      disabled: true
    }, {
      label: '起号/止号',
      prop: 'startEndNo',
      disabled: true,
      // rules: [{
      //   required: true,
      //   message: '请输入起号/止号',
      //   trigger: 'blur'
      // }]
    }, {
      label: '车票用途',
      prop: 'ticketPurpose',
      disabled: true,
      rules: [{
        required: true,
        message: '请输入车票用途',
        trigger: 'blur'
      }]
    }, {
      label: '计划完成时间',
      prop: 'planFinishTime',
      type: 'date',
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd HH:mm:ss',
      disabled: true
    }]
  }, {
    label: '车票清洗实际信息',
    column: [{
      label: '实际完成时间',
      prop: 'actualFinishTime',
      type: 'date',
      valueFormat: 'yyyy-MM-dd HH:mm:ss',
      rules: [{
        required: true,
        message: '请选择实际完成时间',
        trigger: 'blur'
      }]
    }, {
      label: '清洗后数量',
      prop: 'cleanedNumber',
      type: 'number',
      precision: 0,
      rules: [{
        required: true,
        message: '请输入清洗后数量',
        trigger: 'blur'
      }]
    }, {
      label: '折损数量',
      prop: 'lossNumber',
      type: 'number',
      precision: 0,
      rules: [{
        required: true,
        message: '请输入折损数量',
        trigger: 'blur'
      }]
    }, {
      label: '未清洗数量',
      prop: 'uncleanNumber',
      type: 'number',
      precision: 0,
      rules: [{
        required: true,
        message: '请输入未清洗数量',
        trigger: 'blur'
      }]
    }]
  }, {
    label: '未完成情况说明',
    column: [{
      label: '未完成情况说明',
      prop: 'unfinishReason',
      type: 'textarea',
      span: 24
    }]
  }, {
    label: '审批内容',
    editDisplay: false,
    column: [{
      label: '审批状态',
      type:"select",
      dicUrl: '/admin/dict/type/check_status',
      prop: 'checkStatus',
      editDisplay: false,
      span: 24
    }, {
      label: '审批建议',
      prop: 'checkSuggest',
      type: 'textarea',
      editDisplay: false,
      span: 24
    }]
  }]
};
